package com.study.spring.log.easy;

import com.study.spring.log.aoplog.LogRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @date 2021年10月27日 20:07
 * @description
 */

@RestController
public class DemoController2 extends DemoController{


    private static final Logger logger = LoggerFactory.getLogger("businessLog");


    @Override
    @GetMapping("/get2")
    @LogRecord(content = "test内容信息")
    public String get(){
//        logger.info("infomessage");
//        logger.warn("message");
        return "OK2";
    }
}
